import axios, { AxiosResponse, InternalAxiosRequestConfig } from "axios";
const instance=axios.create({
    baseURL:import.meta.env.VITE_BASE_URL,
    timeout:3000
})
instance.interceptors.request.use((config:InternalAxiosRequestConfig)=>{
    return config;
},(err:Error)=>{
    return Promise.reject(err);
})
instance.interceptors.response.use((response:AxiosResponse)=>{
    return response;
},(err:Error)=>{
    return Promise.reject(err);
})
export default instance;